package com.study.student_chuji.demos.service.impl;

import com.study.student_chuji.demos.Mapper.PermissionMapper;
import com.study.student_chuji.demos.pojo.Permission;
import com.study.student_chuji.demos.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> getAllPermissions() {
        return permissionMapper.selectAll();
    }
    @Autowired
    @Lazy
    private PasswordEncoder passwordEncoder;
}
